package com.ybn.service.Impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ybn.entity.VoteSubject;
import com.ybn.mapper.VoteSubjectMapper;
import com.ybn.service.VoteSubjecService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class VoteSubjecServiceImpl extends ServiceImpl<VoteSubjectMapper, VoteSubject> implements VoteSubjecService {


    @Resource
    VoteSubjectMapper voteSubjectMapper;

    @Override
    public IPage<VoteSubject> findAll(IPage<VoteSubject> page) {
        return baseMapper.findAll(page);
    }

    @Override
    public VoteSubject getVoteSubjectById(Integer vsid) {
        return voteSubjectMapper.getVoteSubjectById(vsid);
    }
}
